<?php
namespace app\admin\validate;

use think\Validate;

class Bank extends Validate
{
    protected $rule = [
        'name' => 'require',
        'number' => 'require',
        'desc' => 'require',
    ];

    protected $message = [
        'name.require' => '名称不能为空',
        'number.require' => '编号不能为空',
        'desc.require' => '描述不能为空',
    ];

    protected $scene = [
        'add'   => ['name', 'number', 'desc'],
        'edit'   => ['name', 'number', 'desc'],
    ];
}